var request = require('../request.js')

module.exports = {    // 文章列表    getArticleList: function(e) {    	return request.getRequest("/api/content/article/list", e);    },
	//文章详情
	getArticleInfo: function(e) {
		return request.getRequest('/api/content/article/' + e)
	},
	//评论文章
	commentArticle: function(e) {
		return request.autoRequest('/sys/article/review', e)
	},
	//文章点赞
	praiseArticle: function(e){
		return request.autoRequest('/sys/article/upvote', e)
	},
	//文章取消点赞
	noPraiseArticle: function(e){
		return request.autoRequest('/sys/article/upvote/' + e, {}, 'delete')
	}
}
